package com.dmall.client.proxy;

import com.dmall.client.pojo.User;
import org.springframework.stereotype.Component;

/**
 * feign的熔断配置
 * @author Mr.Wang
 */
@Component
public class UserServiceProxyFallback implements UserServiceProxy {

    @Override
    public User get(Integer id) {
        User user = new User();
        user.setId(-1);
        return user;
    }
}
